#set(primaryKey = table.getPrimaryKey().getProperty())
#set(primaryKeyType = table.getPrimaryKey().getPropertySimpleType())
#set(entityClassName = table.buildEntityClassName())
#set(entityVarName = firstCharToLowerCase(entityClassName))
#set(tableComment = table.getComment())
package #(packageConfig.serviceImplPackage);
import #(packageConfig.entityPackage).#(table.buildEntityClassName());
import #(packageConfig.servicePackage).#(table.buildServiceClassName());
import #(packageConfig.basePackage).dao.#(table.buildEntityClassName())Dao;
import #(packageConfig.basePackage).dto.#(entityClassName)PageQueryDTO;
import #(packageConfig.basePackage).dto.#(entityClassName)SaveOrUpdateDTO;
import org.springframework.stereotype.Service;
import com.mybatisflex.core.paginate.Page;


/**
 * #(table.getComment()) 业务服务实现层。
 *
 * @author #(javadocConfig.getAuthor())
 */
@Service
public class #(table.buildServiceImplClassName()) implements #(table.buildServiceClassName()) {
    @Resource
    private #(entityClassName)Dao #(entityVarName)Dao;

    /**
     * 新增#(tableComment)数据
     *
     * @param #(entityVarName)SaveOrUpdateDTO 新增/更新参数对象
     */
    @Override
    public void save(#(entityClassName)SaveOrUpdateDTO #(entityVarName)SaveOrUpdateDTO) {

    }

    /**
     * 根据id更新#(tableComment)数据
     *
     * @param #(entityVarName)SaveOrUpdateDTO 新增/更新参数对象
     */
    @Override
    public void updateById(#(entityClassName)SaveOrUpdateDTO #(entityVarName)SaveOrUpdateDTO) {

    }

    /**
     * 根据id删除#(tableComment)数据
     *
     * @param id 主键id
     */
    @Override
    public void removeById(#(primaryKeyType) id) {
         #(entityVarName)Dao.removeById(id);
    }

    /**
     * 根据id查询#(tableComment)数据
     *
     * @param id 主键id
     */
    @Override
    public #(entityClassName) getInfo(#(primaryKeyType) id) {
        #(entityClassName) #(entityVarName) = #(entityVarName)Dao.getById(id);
        return #(entityVarName);
    }

    /**
     * 分页查询#(tableComment)
     *
     * @param #(entityVarName)PageQueryDTO 分页参数对象
     */
    @Override
    public Page<#(entityClassName)> page(#(entityClassName)PageQueryDTO #(entityVarName)PageQueryDTO) {
        return #(entityVarName)Dao.page(#(entityVarName)PageQueryDTO);
    }
}
